/* 定义 Poppins 字体 */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*body {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    min-height: 100vh  ;*/
/*    background: #000;*/
/*}*/

section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('../img/1.jpg') no-repeat;
    background-size: cover;
    backfround-position: center;

/*  添加动画  */
    animation:  animateBg 5s linear infinite;

}

@keyframes animateBg {

    100%{
        filter: hue-rotate(360deg);
    }


}

.login-box {
    position: relative;
    width: 400px;
    height: 450px;
    /*  背景改为 透明 色 */
    background: transparent;
    /*  添加外边框 */
    border: 2px solid rgba(255, 255, 255, .5);

    border-radius: 20px;
    /*弹性布局的容器*/
    display: flex;
    justify-content: center;
    align-items: center;

    /*    添加 玻璃的感觉  */
    backdrop-filter: blur(15px);

}

h2 {

    font-size: 2em;
    color: #fff;
    text-align: center; /* 文本对齐方式 */

}

.input-box {
    position: relative;
    width: 310px;
    margin: 30px 0;
    border-bottom: 2px solid #fff;

}

.input-box label {
    /*子 绝对定位 */
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    /*  上浮效果的过度 */
    transition: .5s;

}

/*  文字上浮效果 */
.input-box input:focus ~ label,
.input-box input:valid ~ label {

    top: -5px;


}


.input-box input {

    width: 100%;
    height: 50px;
    /* 这个是什么意思？*/
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;

    /*   与上浮的文字首行对齐 */
    /*    35px 表示可以输入多个字符 */
    padding: 0 35px 0 5px;

}

.input-box .icon {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    line-height: 57px;
}

.remember-forgot {

    margin: -15px 0 15px;
    font-size: .9em;
    color: #fff;
    /*  父亲 包含的 元素 两边对齐  */
    display: flex;
    justify-content: space-between;

}


.remember-forgot label input {

    margin-right: 3px;
}

.remember-forgot a {
    color: #fff;
    /*   去掉超链接的下划线 */
    text-decoration: none;
}

.remember-forgot a:hover {
    /*   鼠标经过时 显示 下划线  */
    text-decoration: underline;
}


button {
    width: 100%;
    height: 40px;
    background: #fff;
    border: none;
    ontline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #000;
    font-weight: 500;

}

.register-link {

    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;

}

.register-link p a {

    color: #fff;
    text-decoration: none;
    font-weight: 600;

}


.register-link p a:hover {
    text-decoration: underline;
}

/* 最后 添加 媒体查询 */
@media(max-width: 360px){
    .login-box{
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;

    }
    .input-box{
        width: 290px;
    }
}





